import request from '@/utils/request'

export const getUserInfo = (username: string) => {
  return request.get(`/user/${username}`).then((res: any) => {
    return res
  })
}

// 修改密码
export const changePassword = (username: string, passwd: string) => {
  return request
    .put(`/user/resetpass/${username}`, {
      passwd: passwd,
    })
    .then((res: any) => {
      return res
    })
}
